home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2007 December / PCWKCD1207B.iso / Blogowanie poza sfera / Flock 0.9.1.3 stable / flock-0.9.1.3.en-US.win32.exe / flock / res / detect / youtube.xml < prev   
Extensible Markup Language  |  2007-10-12  |  3KB  |  115 lines

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <service name="youtube"
  3.          version="$Id: youtube.xml 13478 2007-07-19 19:45:26Z chris $"
  4.          xmlns="http://www.flock.com/web-detective#">
  5.  
  6.   <strings>
  7.     <string name="domains" value="youtube.com"/>
  8.     <string name="userlogin">
  9.       <![CDATA[http://www.youtube.com/]]>
  10.     </string>
  11.     <string name="userprofile">
  12.       <![CDATA[http://www.youtube.com/profile?user=%accountid%]]>
  13.     </string>
  14.     <string name="editprofile">
  15.       <![CDATA[http://youtube.com/my_profile]]>
  16.     </string>
  17.     <string name="inbox">
  18.       <![CDATA[http://youtube.com/my_messages]]>
  19.     </string>
  20.     <string name="subscriptions">
  21.       <![CDATA[http://youtube.com/subscription_center]]>
  22.     </string>
  23.   </strings>
  24.  
  25.   <sessioncookies>
  26.     <cookie host=".youtube.com" name="LOGIN_INFO" path="/"/>
  27.   </sessioncookies>
  28.  
  29.   <detect type="login">
  30.     <url domain="youtube.com"/>
  31.     <form>
  32.       <field tagname="input" name="username" type="text"/>
  33.       <field tagname="input" name="password" type="password"/>
  34.     </form>
  35.   </detect>
  36.  
  37.   <detect type="signup">
  38.     <url domain="youtube.com"><path contains="/signup"/></url>
  39.     <form>
  40.       <field tagname="input" name="username"/>
  41.       <field tagname="input" type="password" name="password2" extractas="password"/>
  42.     </form>
  43.   </detect>
  44.  
  45.   <detect type="loggedin">
  46.     <xpath><![CDATA[//div[@id="baseDiv"]/div[@id="utilDiv"]//a/text()[contains(.,"Log Out")]]]></xpath>
  47.   </detect>
  48.  
  49.   <detect type="loggedin">
  50.     <xpath><![CDATA[//table[@class="channelMastheadTable"]//a/text()[contains(.,"Log Out")]]]></xpath>
  51.   </detect>
  52.  
  53.   <detect type="loggedout">
  54.     <xpath><![CDATA[//div[@id="baseDiv"]/div[@id="utilDiv"]//a/text()[contains(.,"Log In")]]]></xpath>
  55.   </detect>
  56.  
  57.   <detect type="accountinfo">
  58.     <results>
  59.       <regexp re1="accountid">
  60.         <![CDATA[/Hello, <a +href="\/profile\?user=(.+?)"/]]>
  61.       </regexp>
  62.     </results>
  63.   </detect>
  64.  
  65.   <detect type="person">
  66.     <conditions>
  67.       <url>
  68.         <path contains="profile"/>
  69.         <querystring contains="user="/>
  70.       </url>
  71.     </conditions>
  72.     <results>
  73.       <url>
  74.         <regexp re1="userid">
  75.           <![CDATA[/user=(\w+)/]]>
  76.         </regexp>
  77.       </url>
  78.       <document>
  79.         <regexp re1="addFriendURL">
  80.           <![CDATA[/a href="(.+?)">Add as Friend/]]>
  81.         </regexp>
  82.       </document>
  83.     </results>
  84.   </detect>
  85.   
  86.   <detect type="person">
  87.     <regexp re1="userid">
  88.       <![CDATA[/subscription_center\?add_user=(.+?)"/]]>
  89.     </regexp>
  90.     <results>
  91.       <regexp re1="addFriendURL">
  92.         <![CDATA[/user_id=(\w+)/]]>
  93.       </regexp>
  94.     </results>
  95.   </detect>
  96.  
  97.   <detect type="media">
  98.     <conditions>
  99.       <url><path contains="profile"/></url>
  100.     </conditions>
  101.     <url>
  102.       <regexp re1="userid">
  103.         <![CDATA[/user=(\w+)/]]>
  104.       </regexp>
  105.     </url>
  106.   </detect>
  107.  
  108.   <detect type="media">
  109.     <regexp re1="userid">
  110.       <![CDATA[/kpu=(\w+)/]]>
  111.     </regexp>
  112.   </detect>
  113.  
  114. </service>
  115.